<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>购物车</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<style type="text/css">
			<!--
			body {
				background-color: #aed4ff;
			}
			-->
		</style>
	</head>
	<body>
		<img src="/bookshop-online/image/bupt_shopping_cart.jpg" width="236"
			height="257" hspace="200" vspace="150">
		<div style="margin: -400px 0px 0px 500px;">
	
			<s:if test="#request.orderlist!=null">
				<TABLE cellSpacing=0 cellPadding=0 width="42%" border=0>
					<s:iterator value="#request.orderlist" var="order">
						<tr>
							<td>书名：<s:property value="#order.bookname" />&nbsp;
							</td>
							<td>价格：<s:property value="#order.price" />&nbsp;
							</td>
							<td>数量：<s:property value="#order.num" />&nbsp;
							</td>
							<td>操作：<a
								href="cartAction_deleteFromCart.action?orderIdToDelete=${order.id}">从购物车中删除<br></a></td>
						</tr>
					</s:iterator>
				</TABLE>
			</s:if>
			<a href="cartAction_submitCart.action">提交订单</a>
			<a href="/bookshop-online/index.jsp">返回</a>
			
		</div>
	</body>
</html>